linq get item

102

linq get item -

string search = "lookforme";
 List<string> myList = new List<string>();
 string result = myList.Single(s => s == search);

Comments

Submit
0 Comments